#include <boost/scoped_ptr.hpp> 
#include <iostream>

int main(int argc, char* argv[]) {
	boost::scoped_ptr<int> i(new int);
	*i = 1;
	*i.get() = 2;
	std::cout << "i:" << i << std::endl;
	i.reset(new int);
	std::cout << "i:" << i << std::endl;
}
